﻿@model IEnumerable<BugTracker.Models.User>

@{
    ViewBag.Title = "Users";
    Layout = "~/Views/Shared/_LayoutAdmin.cshtml";
}

<div>
@Html.Partial("_Logo")
</div>
<center>
<table>
<tr>
         <th>
        Username
         </th>
         <th>
        Firstname
         </th>
         <th>
        Lastname
         </th>
         <th>
        Role
         </th>
         <th> 
         </th>
         <th>
         </th>        
 </tr>
   
@foreach (var item in Model)    {
 <tr>
    <td>
         @Html.DisplayFor(modelItem => item.user_name)
       </td>
        <td>
            @Html.DisplayFor(modelItem => item.first_name)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.last_name)
         </td>
        <td>
            @Html.DisplayFor(modelItem => item.role_idFK)
        </td> 
         @*<td> @Html.ActionLink("Delete User", "Delete", new { id = item.user_idPK }, new { onclick = "return confirm('Are you sure you wish to delete this data?');" }) </td>*@
         <td> @Html.ActionLink("Edit User", "Edit" , new { id=item.user_idPK }) </td>
         <td> @Html.ActionLink("Details", "Details", new { id=item.user_idPK})</td>
    </tr>    
}
</table>
</center>
